import request from '@/utils/request'

// 查询考勤政策/排班详情列表
export function listPolicies(query) {
  return request({
    url: '/attendance/policies/list',
    method: 'get',
    params: query
  })
}

// 查询考勤政策/排班详情详细
export function getPolicies(id) {
  return request({
    url: '/attendance/policies/' + id,
    method: 'get'
  })
}

// 新增考勤政策/排班详情
export function addPolicies(data) {
  return request({
    url: '/attendance/policies',
    method: 'post',
    data: data
  })
}

// 修改考勤政策/排班详情
export function updatePolicies(data) {
  return request({
    url: '/attendance/policies',
    method: 'put',
    data: data
  })
}

// 删除考勤政策/排班详情
export function delPolicies(id) {
  return request({
    url: '/attendance/policies/' + id,
    method: 'delete'
  })
}
